package cn.oms.manage.pojo.param;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Accessors(chain = true)
public class MedicineAddNewParam implements Serializable {

    @ApiModelProperty(value = "名称", required = true)
    @NotNull(message = "添加药品失败，必须提交名称！")
    private String name;

    @ApiModelProperty(value = "分类", required = true)
    @NotNull(message = "添加药品失败，必须提交分类！")
    private Long categoryId;

    @ApiModelProperty(value = "描述", required = true)
    @NotNull(message = "添加药品失败，必须提交描述！")
    private String description;

    @ApiModelProperty(value = "售价", required = true)
    @NotNull(message = "添加药品失败，必须提交售价！")
    private BigDecimal price;

    @ApiModelProperty(value = "库存", required = true)
    @NotNull(message = "添加药品失败，必须提交进货数量！")
    private Integer currentNum;

}
